-- GENERATED SPELL FOR [Marticar] --


function spell0_18680(pUnit, Event) --@Forked Lightning Tether,n/a--
pUnit:FullCastSpellOnTarget(35493,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18680', 5000, 1)
end

function spell1_18680(pUnit, Event) --@Magnetic Pull,n/a--
pUnit:FullCastSpellOnTarget(32039,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18680', 1291, 1)
end

function Sorts_18680(pUnit, Event)
local choix_sorts_18680 = math.random(0, 1)
if choix_sorts_18680 == 0 then
pUnit:RegisterEvent('spell0_18680', 1, 1)
end
if choix_sorts_18680 == 1 then
pUnit:RegisterEvent('spell1_18680', 1, 1)
end
end

function mob18680_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18680', math.random(1500, 3000), 1)
end

function mob18680_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18680_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18680_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18680, 1, 'mob18680_Action')
RegisterUnitEvent(18680, 2, 'mob18680_Leave')
RegisterUnitEvent(18680, 3, 'mob18680_Kill')
RegisterUnitEvent(18680, 4, 'mob18680_Die')
